package com.dale.util;

import cn.hutool.crypto.SecureUtil;

/**
 * 获取salt
 *
 * @author Gyt
 * @create 2021-05-23 - 10:06
 */
public class SaltUtil {

    private static String salt = "dbd122@!@sdf";

    public static String getSalt() {
        return salt;
    }

    /**
     * 加密
     *
     * @param password
     * @param salt
     * @return
     */
    public static String encryption(String password, String salt) {
        String newPassword = password+salt;
        String s = SecureUtil.md5(newPassword);

        return s;
    }

    /**
     * 解密
     *
     */
}
